import BoliTable from '@/components/BoliTable/index.vue'
import IconFont from '@/components/IconFont/index.vue'
import PageHead from '@/components/PageHead/index.vue'
import { ActionBar, SearchItem, SearchList } from '@/components/SearchList/index'
import { DeleteOutlined, EditOutlined } from '@ant-design/icons-vue'
import { Button, Card, Checkbox, Col, ConfigProvider, DatePicker, Empty, Form, Input, InputNumber, message, Modal, Popover, Radio, Row, Select, Spin, Tag, Upload } from 'ant-design-vue'
import type { App } from 'vue'

export default function (app: App) {
  app.use(Tag)
  app.use(Row)
  app.use(Col)
  app.use(Radio)
  app.use(Button)
  app.use(Modal)
  app.use(ConfigProvider)
  app.use(DatePicker)
  app.use(Empty)
  app.use(Popover)
  app.use(Select)
  app.use(Spin)
  app.use(Form)
  app.use(Checkbox)
  app.use(Input)
  app.use(InputNumber)
  app.use(Card)
  app.use(Upload)
  app.component('PageHead', PageHead)
  app.component('SearchList', SearchList)
  app.component('SearchItem', SearchItem)
  app.component('ActionBar', ActionBar)
  app.component('BoliTable', BoliTable)
  app.component('IconFont', IconFont)
  app.component('DeleteOutlined', DeleteOutlined)
  app.component('EditOutlined', EditOutlined)
  app.config.globalProperties.$message = message
}
